# coding: utf-8
from sqlalchemy import Column, Integer, String
from sqlalchemy.schema import FetchedValue
from application import db



class Grade(db.Model):
    __tablename__ = 'grade'

    id = db.Column(db.Integer, primary_key=True)
    user_name = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue(), info='???')
    book_name = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue(), info='????')
    grade = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue(), info='??')
    status = db.Column(db.Integer, nullable=False, server_default=db.FetchedValue(), info='?? 1??? 0???')
